<?php
global $nivel_acesso;

if (empty($_REQUEST['email']) and empty($_REQUEST['senha'])) {
	?>
	<form action="<?php echo $URL ?>" id="form_login" method="post">
		<fieldset>
			email: <input type="text" id="email" name="email" />
			senha: <input type="password" id="senha" name="senha" />
			<a href="<?php echo $URL ?>?login=reenvio_de_senha"><i>esqueci minha senha</i></a>
			<input type="submit" id="submit" name="enviar" value="enviar" />
		</fieldset>
	</form>
<?php 
}else{
	verifica_email_senha_e_permissao($_REQUEST['email'],$_REQUEST['senha'],$nivel_acesso);
}
?>